package com.openbravo.pos.inventory;

import com.openbravo.data.gui.ListCellRendererBasic;
import com.openbravo.data.loader.ComparatorCreator;
import com.openbravo.data.loader.TableDefinition;
import com.openbravo.data.loader.Vectorer;
import com.openbravo.data.user.EditorRecord;
import com.openbravo.data.user.ListProvider;
import com.openbravo.data.user.ListProviderCreator;
import com.openbravo.data.user.SaveProvider;
import com.openbravo.pos.forms.AppLocal;
import com.openbravo.pos.forms.AppView;
import com.openbravo.pos.forms.DataLogicSales;
import com.openbravo.pos.panels.JPanelTable;
import javax.swing.ListCellRenderer;

public class TaxCategoriesPanel extends JPanelTable
{
  private TableDefinition ttaxcategories;
  private TaxCustCategoriesEditor jeditor;

  protected void init()
  {
    DataLogicSales localDataLogicSales = (DataLogicSales)this.app.getBean("com.openbravo.pos.forms.DataLogicSales");
    this.ttaxcategories = localDataLogicSales.getTableTaxCategories();
    this.jeditor = new TaxCustCategoriesEditor(this.dirty);
  }

  public ListProvider getListProvider()
  {
    return new ListProviderCreator(this.ttaxcategories);
  }

  public SaveProvider getSaveProvider()
  {
    return new SaveProvider(this.ttaxcategories);
  }

  public Vectorer getVectorer()
  {
    return this.ttaxcategories.getVectorerBasic(new int[] { 1 });
  }

  public ComparatorCreator getComparatorCreator()
  {
    return this.ttaxcategories.getComparatorCreator(new int[] { 1 });
  }

  public ListCellRenderer getListCellRenderer()
  {
    return new ListCellRendererBasic(this.ttaxcategories.getRenderStringBasic(new int[] { 1 }));
  }

  public EditorRecord getEditor()
  {
    return this.jeditor;
  }

  public String getTitle()
  {
    return AppLocal.getIntString("Menu.TaxCategories");
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.inventory.TaxCategoriesPanel
 * JD-Core Version:    0.6.0
 */